package com.hzncc.flowable_diboot.trial_contracts.entity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 试用合同取消单 Entity 定义
* @author MyName
* @version 1.0
* @date 2024-10-16
* Copyright © MyCorp
*/

@TableName("mdl_trial_contract_cancel")
@Getter @Setter @Accessors(chain = true)
public class TrialContractCancel extends BaseModel {
    private static final long serialVersionUID = 1776519536155033840L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 试用合同编号
     */
    @Length(max=50, message="试用合同编号长度应小于50")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractNumber;

    /**
     * 客户名称
     */
    @Length(max=100, message="客户名称长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String customerName;

    /**
     * 系统合同取消状态
     */
    @Length(max=20, message="系统合同取消状态长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String systemContractCancellationStatus;

    /**
     * 合同取消事业部
     */
    @Length(max=120, message="合同取消事业部长度应小于120")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractCancellationDepartment;

    /**
     * 合同类型
     */
    @Length(max=20, message="合同类型长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractType;

    /**
     * 产品类型
     */
    @Length(max=20, message="产品类型长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String productType;

    /**
     * 发货情况
     */
    @Length(max=20, message="发货情况长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String deliverySituation;

    /**
     * 申请人
     */
    @Length(max=32, message="申请人长度应小于32")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String applicant;

    /**
     * 申请日期
     */
    @TableField()
    private LocalDateTime applicationDate;

    /**
     * 退库情况
     */
    @TableField()
    private String returnToInventorySituation;

    /**
     * 合同取消原因
     */
    @Length(max=500, message="合同取消原因长度应小于500")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractCancellationReason;

    /**
     * 状态
     */
    @Length(max=20, message="状态长度应小于20")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String status;

    /**
     * 合同审批id
     */
    @Length(max=32, message="合同审批id长度应小于32")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractAuditId;


}